# -*- coding:utf-8 -*-

import os
import simplejson

if __name__ == "__main__":
    PROJECT_PATH = os.path.dirname(os.path.abspath( __file__ ))
    PROJECT_NAME = os.path.split(PROJECT_PATH)[1]
#    print PROJECT_PATH
#    print PROJECT_NAME
    
    p = r'C:\upload\temp.txt'
    ext = os.path.split(p)[1]
    print ext
#    r_dic = {'d':'fdfds犯得上'}
#    result = simplejson.dumps(r_dic,ensure_ascii=False)
#    print type(result)
#    print simplejson.dumps(result)
    
    import re
    str = '/fds/site_media/aabb/cc'
    raw = 'media'
#    rawstr = r"\b%s\b" %'aa'
#    line = re.subn(rawstr, raw, str, 1)[0]
#    print line
    

    appdir = os.path.abspath(os.path.dirname(__file__))
    print appdir
    import django
    print django.VERSION
    
    
